package com.rrd.hive.udf;

import org.apache.hadoop.hive.ql.exec.UDF;
import org.apache.hadoop.io.Text;

public class ActualAmortizeAmtUdf2 extends UDF {
 
	private Text text = new Text("0");
	public Text evaluate(int nper) {
		int counter=Integer.parseInt(text.toString())+1;
		text.set(String.valueOf(counter));
		 
		return text;
	}

}
